package net.lab1024.sa.admin.module.business.template.domain.form;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import lombok.Data;
import net.lab1024.sa.base.common.json.deserializer.FileKeyVoDeserializer;

/**
 * 报价单模版 新建表单
 *
 * @Author zzx
 * @Date 2025-08-06 11:03:50
 * @Copyright zzx
 */

@Data
public class QuotationTemplateAddForm {

    @Schema(description = "长")
    private BigDecimal templateLong;

    @Schema(description = "高度")
    private BigDecimal templateHeight;

    @Schema(description = "报价单名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "报价单名称 不能为空")
    private String templateName;

    @Schema(description = "禁用状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "禁用状态 不能为空")
    private Boolean disabledFlag;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "计价方式")
    private Integer pricingType;

    @Schema(description = "图纸")
    @JsonDeserialize(using = FileKeyVoDeserializer.class)
    private String drawingPath;

}